package com.shop.cereshop.commons.domain.shop;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 店铺营业时间实体类
 */
@Data
@TableName("cere_business_time")
@ApiModel(value = "CereBusinessTime", description = "店铺营业时间")
@JsonInclude(JsonInclude.Include.NON_NULL)  // 只序列化非null字段
public class CereBusinessTime {

        /**
         * 主键id
         */
        @TableId(value = "id", type = IdType.AUTO)
        @ApiModelProperty(value = "主键id")
        @JsonProperty("id")
        private Long id;

        /**
         * 店铺id
         */
        @TableField("shop_id")
        @ApiModelProperty(value = "店铺id")
        @JsonProperty("shop_id")
        private Long shopId;

        /**
         * 周日期 1 2 3 4 5 6 7
         */
        @TableField("week")
        @ApiModelProperty(value = "周日期 1 2 3 4 5 6 7")
        @JsonProperty("week")
        private String week;

        /**
         * 开始时间
         */
        @TableField("start_time")
        @ApiModelProperty(value = "开始时间")
        private String startTime;

        /**
         * 结束时间
         */
        @TableField("end_time")
        @ApiModelProperty(value = "结束时间")
        private String endTime;


}
